//中奖记录
import request from '../request/request';

// 获取中奖记录
export const getWinningRecords = (userId) => {
  return request({
    url: '/Winning/index',
    method: 'post',
    data: {
      user_id: userId
    }
  });
};

// 创建订单
export const createOrder = (orderData, userId) => {
  return request({
    url: '/order/add',
    method: 'post',
    data: orderData,
    headers: { id: userId }
  });
};